package cn.juque.datapipeline.mapper;

import cn.juque.datapipeline.domain.TaskInfoDO;
import cn.juque.datapipeline.domain.TaskInfoSearchParamDO;
import cn.juque.datapipeline.entity.TaskInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>任务信息</li>
 * </ul>
 * {@code @date} 2023-03-31 11:52:16
 **/
@Mapper
public interface TaskInfoMapper extends BaseMapper<TaskInfo> {

    /**
     * 分页查询
     *
     * @param page     : page
     * @param taskInfo : taskInfo
     * @return List<TaskInfo>
     */
    List<TaskInfoDO> queryInfoList(Page<TaskInfoDO> page, @Param("ew") TaskInfoSearchParamDO taskInfo);

    /**
     * 查询
     *
     * @param taskInfo : taskInfo
     * @return List<TaskInfo>
     */
    List<TaskInfoDO> queryInfoList(@Param("ew") TaskInfoSearchParamDO taskInfo);
}
